package com.hooda.session;

import com.hooda.pojo.Configuration;
import com.hooda.pojo.MappedStatement;

import java.util.List;

/**
 * @author zhangzp
 * @version 1.0, 2021/7/29
 */
public interface Executor {

    <E> List<E> query(Configuration configuration, MappedStatement mappedStatement, Object... parameters) throws Exception;

    int insert(Configuration configuration, MappedStatement mappedStatement, Object... parameters) throws Exception;

    int update(Configuration configuration, MappedStatement mappedStatement, Object... parameters) throws Exception;

    int delete(Configuration configuration, MappedStatement mappedStatement, Object... parameters) throws Exception;
}
